<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__VIEW__/css/style1.css" rel="stylesheet" type="text/css" />
<link href="__VIEW__/css/select.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="__STATIC__/css/hdjs.css" />
<script>
	var checkBrandName = "{|U:'checkBrandName'}";
</script>
<script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/hdjs.min.js"></script>
<script>
$(function(){
	$('#addImg').validate({
		desc:{
			rule:{
				required:true,
			},
			error:{
				required:'请输入轮播图描述'
			},
			message:'请输入轮播图描述'
		},
		link:{
			rule:{
				required:true,
//				http:true
			},
			error:{
				required:'请输入轮播图连接',
//				http:'请输入一个有效的Url地址'
			},
			message:'请输入轮播图连接'
		},
		imgpath:{
			rule:{
				required:true,
			},
			error:{
				required:'请选择上传的图片'
			},
			message:'请选择上传的图片'
		}
	})
	})
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">轮播图管理</a></li>
    <li><a href="#">添加轮播图</a></li>
    
    </ul>
    </div>
    
    <div class="formbody">
    
   
    <div id="usual1" class="usual"> 
     
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected">添加轮播图</a></li> 
    <!--<li><a href="#tab2">自定义</a></li>--> 
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    
    <div class="formtext">Hi，<b>{$hd.session.adminUser}</b>，欢迎管理员大人</div>
    <form action="{|U:'addImg'}" method="post" id="addImg" enctype="multipart/form-data">
    <ul class="forminfo">
    <li><label for="bname">轮播图描述<b>*</b></label><input id="desc" name="desc" type="text" class="dfinput" placeholder="请输入轮播图描述"  style="width:518px;"/></li>
    <li><label for="bname">轮播图连接<b>*</b></label><input id="link" name="link" type="text" class="dfinput" placeholder="请佃入轮播图连接地址"  style="width:518px;"/></li>
   	<li><label>轮播图</label><input type="file" name="imgpath" ></li>
    <li><label for="">缩放大小</label>
    	宽:<input type="text" name="width" value="710" class="dfinput" style="width:100px;" />
    	高:<input type="text" name="height" value="475" class="dfinput" style="width:100px;" />
    </li>
  	<li><label for="bname">轮播图排序</label><input id="sort" name="sort" type="text" class="dfinput" value="100"  style="width:518px;"/></li> 
   
    <li><label>&nbsp;</label><input type="submit" class="btn" value="添加"/></li>
    </ul>
    </form>
    </div> 
	</div> 
    
    
    </div>


</body>

</html>
